I'm using the Settings library on my app and since I'm going to creat a very similar screen on my app, I'd like to know what are the sizes of the title and summary textviews to maintain a similar look.
You can simply use Android Studio layout inspector and check the TextViews font sizes.
You can access the layout inspector by searching for it with "double shift" shortcut.
When you inpect the layout, you will see that the Title is 16sp and the Summary is 14,2sp
Related
I have five background images which are displayed back to back after a certain time interval. I have to add a page indicator for backgrounds so that user can know which background is currently selected. The user should also be able to select next backgrounds using tv remote.
I cannot compromise tv look and feel for rail and its contents which are displayed on the screen.
I also need to resize background image. I do not want the image to be full screen and its size should cover half portion of tv only. Background image should overlap first rails content to an extent.
I am not getting any such sample or blogs depicting customization of background. Any help would be really appreciated..!!!
Try to use layout themes for TV.
Android Themes can provide a basis for layouts in your TV apps.
You should use a theme to modify the display of your app activities
that are meant to run on a TV device. This section explains which
themes you should use.
Style and Themes can be:
A style is a collection of attributes that specify the look and format
for a View or window. A style can specify attributes such as height,
padding, font color, font size, background color, and much more. A
style is defined in an XML resource that is separate from the XML that
specifies the layout.
You can see samples codes as well from the documentation.
I added two fragments inside my Activity. One fragment is for displaying background and indicator. While another fragment is extending BrowseFragment of leanback library, and is used to display rails/headers as is depicted in tv app android sample which is generated via android studio.
I checked android docs, but didn't really find an answer on how to show custom layout in my application. I'm thinking of custom fragment placed next to navigation drawer. Maybe someone can give me pseudo code for better understanding? Thanks.
Visual representation:
http://imgur.com/a/VwTvs
On specific itemClick I want to make a layout (that contains icons/pictures) and place it next to nav drawer.
The key-word you are searching for is resource buckets. Essentially you can create resource-folders based on screen size, API version, orientation and such. Refer to the official documentation on how to create layouts for different screen sizes.
In Android Studio you can create resource-files based on those quantifiers by open the "new resource file" dialog and selecting the quantifiers you want in the lower part of the dialog.
Have a look here to read on layouts made exclusively for TVs.
I am writing a mobile app for Android and iOS using the Alpha Anywhere framework. I have a dropdown textbox which currently displays two options "King Kong" and "Peter Jackson". How do I change the font size of these names in Alpha Anywhere?
If you know of a solution using JavaScript or Xbasic in the software suite that would also useful, and appreciated.
Are you using a ControlBar control? If so, that is where you would style it. On the other hand, if it is simply a drop-down control in a header, you could click on the object in the UX editor, and edit it's style in the Properties column on the right.
I'm trying to make a list that looks exactly like Sound setting in 2.3.4 as in this screenshot:
The problem is that I tried using TableRow and ended up like this:
------------------------------------------
Vibration >
------------------------------------------
Only when not in Silent Mode
------------------------------------------
instead of one large row as in the screenshot. What did I do wrong?
These inbuilt icons are nice (such as the ">" icon) - couldn't find on Google Image so I guess these icons are "inbuilt" in the Android OS. Is there any document we can refer about this? I'd like to use system text colours/background colours and these icons but don't know how to implement in the code.
This is a PreferenceActivity.
This link is good example of android preference. Using preference you don't need to make table layout and using detail button icon. Using preference this icon comes automatically.
The examples from this link and this link may help you.
it is Listview but it is customizable you have to make xml file which display this tow Textview and icon(in your words).
These inbuilt icons are nice (such as the ">" icon) - couldn't find on Google Image so I guess these icons are "inbuilt"
This is not a inbuilt icons but this is just image that set customarily.
Here are some links:
Official Developer Community
fentastic Sai geetha blog
josecgomez.com
I am working on a small application which should be represented by an AppWidget.
The AppWidget should look like many other widgets on my HTC Desire. Most of them consist of an icon and a title below the icon. The title always looks identical, it is white text on a black rounded banner. I have not found a way to get this layout without painting all by myself. What do I have to do, to get the app title shown below the AppWidget?
Thank in advance,
Wolfgang
Per a previous answer here this is actually discouraged by the Android UI guidelines: An App shortcut has such text below it, and it may change in future Android releases or in custom skins such as HTC Sense or MOTOblur. A widget should be a wholly contained graphical element without a text label below it. You need to find a way to make graphics / text in your widget which are self identifying to the user.