Removing the shadow which comes below a tab layout in android. [done] - android

I am curious to know if there is anyway I can remove OR change the drop-shadow like effect that android gives below a Tab layout.

As soon as I ask this question, I get the answer in another stackoverflow post. Anyways for the benefit of people who have landed on this post, the answer is to
use a custom theme with its windowContentOverlay set to null

Related

Material Design TextInputLayout With An Attached Dropdown?

Is there a Material component that will easily let me set the left of a TextInputEditText to be a dropdown like this image below? If not, I can create something, but wanted to see if anyone knew more about Material components before I start doing too much custom work. Looks custom to me, though.
With material component, Google has removed spinner from its UI Elements.
Preferred way to do it is TextInputLayout along with AutoCompleteTextView just like Ashu has mentioned in the comment section.
Here is a more thorough article, which can help you in implementing AutoCompleteTextView.
https://blog.usejournal.com/there-is-no-material-design-spinner-for-android-3261b7c77da8
So far, both answers say to use AutoCompleteTextView. However, that doesn't answer my question. As you can see in the image I posted with the question, only the left side is a drop down. The right side is just a normal text input that isn't affected by the drop down.
However, I think it is safe to assume there isn't a component that will do this for me easily and that it would indeed be custom work to make these two components appear to be one single component.

Is it possible to customize the BottomNavBar without Icons, Change the text and Changing the selected tab background

BottomBarNavigationBar template
BottomBarNavigationBar
Note : It should follow google material design guidelines also.
Removing Bottom Navigation Bar is not possible in non-rooted android device. But you can set buttons to just above the Bottom navigation Bar,it would work fine and look nice.
For changing text style you can go through this link. It would clear your doubt.
Changing the selected tab is definitely possible. For this go through this link
And finally I am sorry that I am giving just link here, as all the questions you asked are already available on SO.
So please, next time when you ask any question, then do a detail research about it then post that here.

Android PagerTabStrip - Remove spacing

Has anyone managed to bring the items in a V4 PagerTabStrip together, more like Google Play Store?
http://developer.android.com/reference/android/support/v4/view/PagerTabStrip.html
This is what I want:
This is what i get (the space between segments):
These images are not mine but its just to explain what I mean.
Additionally the underline for the Strip, is it possible to have a different color then the selected item underline (v4).
Thanks
Edit: For all those asking if I ever found a solution, I never did. Sorry :-(
I'm also searching the answers to this questions and it seems not exist the api to do such thing in android-support-v4. But as an alternative, we can try this https://github.com/xiaopansky/PagerSlidingTabStrip . Not a perfect but time-saving solution.
So it's been a while on this topic but I believe there are people still searching for this answer so I wanted to put here what I've found.
https://developer.android.com/samples/SlidingTabsBasic/src/com.example.android.common/view/SlidingTabStrip.html
On Android's developer website, they have sample code on how to accomplish it yourself. I personally haven't tested it yet so not sure if it supports that exact look and feel or whether it supports customization but at least the code is there for yourself and you can play around with it. I'd really wish that v4 PagerTitleStrip and PagerTabStrip supported the above features by default.
The default PagerTitleStrip has only 3 textviews initialized. So if You wish to remove spacing create a custom PagerTitleStrip class and add more textviews so that space is reduced.

How to style the children Views from the parent View?

I am currently trying to get the look of my app right. But I am having problems figuring out how to even set up a way to change themes. For one thing, is there even a way to change styles through code? I checked the method list and I saw nothing. This leads me to my actual question; is there a way that, like CSS, in which you style the parent, and then have it trickle down but also changed depending on the View? I looked at the Android docs, and they did not show any examples of this. Hopefully someone can give me an idea as to how to accomplish this, or if its not possible, to let me know that as well. Thanks in advance.
You should be able to do this using styles and themes. I've implemented this using Jake whartons Sherlock action bar. (I'm not certain if it's necessary) It involves using the comparability library which gives you the ability to use fragments and loaders as well. Look at his democode at http://actionbarsherlock.com/download.html. Look for where themes are mentioned and you will find the information you need. In the demo app you can change the theme in the top right corner and see how it affects the activities look and feel. It also shows many of the features available and the code to write them. I have found this an invaluable resource and it should show you how to theme your app.

Suggestions for android layout

I currently got this complex screen to implement the XML code.
I suppose to build with the tablelayout, but i still have no idea how to place the item on the shelf and the wooden background behind that. Could anyone hint me some ways ? Thanks
Set the bitmap as your activity's background drawable. From there, you've got several possibilities. Two that should work are
1) Place transparent Button's on the activity, using an AbsoluteLayout.
2) A couple of people have coded solutions similar to the HTML image map construct, and posted them in public fora. Google "imagemap android" and borrow.

Categories

Resources