android-textattributes

Issue: change border color or box stroke for unfocused TextInputLayout in android

女生的网名这么多〃 提交于 2020-11-30 04:42:22
问题 I have a very specific issue for changing the outline of the textbox for TextInputLayout when it's unfocused. I can't seem to find an attribute to change the color for the border of my "unfocused" text box. Here's a visual example of what I'm trying to do: The color of this (textbox):border is not white. currently its not focused. After I click it, it turns white: I don't know what I need to change, it doesn't seem like there is an attribute to change it. I'm also using material design text

Issue: change border color or box stroke for unfocused TextInputLayout in android

旧街凉风 提交于 2020-11-30 04:39:00
问题 I have a very specific issue for changing the outline of the textbox for TextInputLayout when it's unfocused. I can't seem to find an attribute to change the color for the border of my "unfocused" text box. Here's a visual example of what I'm trying to do: The color of this (textbox):border is not white. currently its not focused. After I click it, it turns white: I don't know what I need to change, it doesn't seem like there is an attribute to change it. I'm also using material design text

Issue: change border color or box stroke for unfocused TextInputLayout in android

时光毁灭记忆、已成空白 提交于 2020-11-30 04:38:29
问题 I have a very specific issue for changing the outline of the textbox for TextInputLayout when it's unfocused. I can't seem to find an attribute to change the color for the border of my "unfocused" text box. Here's a visual example of what I'm trying to do: The color of this (textbox):border is not white. currently its not focused. After I click it, it turns white: I don't know what I need to change, it doesn't seem like there is an attribute to change it. I'm also using material design text

Missing TextAppearances.Micro style

时光毁灭记忆、已成空白 提交于 2020-02-04 20:44:24
问题 According to Android Developer Design Style for Typography, there are 4 TextAppearance s (Micro, Small, Medium, Large). But there is no predefined style for Micro: ?android:attr/textAppearanceMicro android:style/TextAppearance.Micro None of them can be found in sources of Android. What am I missing? 回答1: Good question! After researching a little bit, I didn't find any results for "TextAppearance.Micro". On the other hand, I found the official Android source for style resource related to

Missing TextAppearances.Micro style

邮差的信 提交于 2020-02-04 20:43:09
问题 According to Android Developer Design Style for Typography, there are 4 TextAppearance s (Micro, Small, Medium, Large). But there is no predefined style for Micro: ?android:attr/textAppearanceMicro android:style/TextAppearance.Micro None of them can be found in sources of Android. What am I missing? 回答1: Good question! After researching a little bit, I didn't find any results for "TextAppearance.Micro". On the other hand, I found the official Android source for style resource related to

How do I change color of a certain part of my textview?

不打扰是莪最后的温柔 提交于 2020-01-06 01:32:24
问题 I am using 2 parts in a textview, 1st part is date another is name and email. They are both referenced in the same textview. I would like to change the color of the date to give it a different visual it from name and email. is it possible to do this without actually adding a whole new textview for name and email? Here's my code so far: String nameandemail; holder.mytext.setText(String.valueOf(dateFormat.format(new Date(msg.getDate())) + " " + nameandemail + ": ")); How do I make it such that

How do I change color of a certain part of my textview?

半腔热情 提交于 2020-01-06 01:32:11
问题 I am using 2 parts in a textview, 1st part is date another is name and email. They are both referenced in the same textview. I would like to change the color of the date to give it a different visual it from name and email. is it possible to do this without actually adding a whole new textview for name and email? Here's my code so far: String nameandemail; holder.mytext.setText(String.valueOf(dateFormat.format(new Date(msg.getDate())) + " " + nameandemail + ": ")); How do I make it such that

Clickable words inside of TextView Android [duplicate]

。_饼干妹妹 提交于 2019-12-30 11:04:51
问题 This question already has answers here : Create clickable link in text view in android (2 answers) Closed 5 years ago . I have a textview that contains hashtags ex. #first #second #third . My question is how can I detect which hashtag is clicked so I can perform some action - eg. make toast of the word. Is this possible using TextView widget? Should I use some other widget istead? UPDATE I found my solution using this example. Hope it will help others in the future! 回答1: You can use spannable

The text color does not change TabWidget

半世苍凉 提交于 2019-12-23 23:26:45
问题 I'm trying to change the TabWidget text color, without success, even though I've tried different way to change it (see code below.) My background tabs is an image: for (int i = 0; i < tabHost.getTabWidget().getTabCount(); i++) { tabHost.getTabWidget().getChildAt(i).setBackgroundColor(Color.TRANSPARENT); } I do not know if this creates some sort of conflict with what I want to do now. Solution1: main.xml .... <TabWidget android:id="@android:id/tabs" android:layout_width="fill_parent" android

Change EditText hint color when using TextInputLayout

北慕城南 提交于 2019-12-17 03:56:12
问题 I am using the new TextInputLayout from the design library. I am able to get it to show and to change the color of the floating label. Unfortunately the actual EditText hint is now always white. I have tried changing the hintColor in XML, styles, and programmatically and also tried using the android.support.v7.widget.AppCompatEditText but the EditText hint always shows white. Here is my XML for my TextInputLayout and EditText <android.support.design.widget.TextInputLayout android:layout_width