Hi,
I included a WebView in my activity and load some Javascript in it which is then going to get data from an external website.
This works and displays fine but the problem is that my activity doesn't scroll when the WebView is done loading so I san't see the bottom of the WebView such as all the other Views I put below this. Any idea os how I should handle this ?
Cheers.
Do WebViews have a scroller built in? Might need to put a ScrollView around it?
Thanks, I used a ScrollView around the WebView and it worked. The WebView has a scroll built-in but it was the main layout that had not.
Hello everyone!
Still doing good with my S4 but I've noticed a change recently. Originally, with any folder on my home screen I could hover over it and would separate the icons by a small amount. Sort of like its recognizing my hover. Now they don't do that anymore. I've even checked through all the airview/gesture settings and don't see much of anything for it. Has anyone else noticed this or had this problem? And, if so, was you able to fix it?
Hello Guys,
My english is not very good, i'm sorry for that.
I'm developing an app and now i want to have an icon in my actionbar.
i cannot give an example (security from XDA) but de usual icon top left most apps have. Now i only have the title, but on the left side of the title i want the icon.
I tried this:
getActionBar().setIcon(R.drawable.my_icon);
And i tried with android manifest to add: Android:icon and Android:logo to the activity and many other things But none of them works for me.
If i watch videos it looks like the icon should be there by default, but not in my case.
I hope somebody can help me.
Thanks in advance.
meijeringw said:
Hello Guys,
My english is not very good, i'm sorry for that.
I'm developing an app and now i want to have an icon in my actionbar.
i cannot give an example (security from XDA) but de usual icon top left most apps have. Now i only have the title, but on the left side of the title i want the icon.
I tried this:
getActionBar().setIcon(R.drawable.my_icon);
And i tried with android manifest to add: Android:icon and Android:logo to the activity and many other things But none of them works for me.
If i watch videos it looks like the icon should be there by default, but not in my case.
I hope somebody can help me.
Thanks in advance.
Click to expand...
Click to collapse
Are you using the new Toolbar API?
Thats what i think. I'm not sure, how can i check that?
Do you mean AppCombat?
You need to add the android:icon attribute under the application element, not under the activity
Also the design guidelines state that the icon shouldn't be used if you are using the Toolbar API - there are other ways to get your apps branding across to the user.
Thanks for the answers.
But i tried to add the android:icon attribute to the application element instead of the activity element. (And i tried both)
But in none of this situations the icon will appear.
If i look on Google and Youtube i see many people creating a actionbar and have an icon by default. Strange that i don't have this.
I hope that you can help me, thanks.
meijeringw said:
Thanks for the answers.
But i tried to add the android:icon attribute to the application element instead of the activity element. (And i tried both)
But in none of this situations the icon will appear.
If i look on Google and Youtube i see many people creating a actionbar and have an icon by default. Strange that i don't have this.
I hope that you can help me, thanks.
Click to expand...
Click to collapse
ActionBar != Toolbar. By default the new Toolbar API does not have an icon - this is due to the new design spec (Material Design) that the Toolbar was created for.
You need to find out if you are using the new Toolbar API or the old ActionBar API.
If you're using the Toolbar API then as I already said, it goes against the guidelines to have an icon in the Toolbar now as the primary function of it used to be to get the app branding across to the user which there are now other ways to do using material design (using a custom color palette etc).
If you are really stubborn and insist on going against the guidelines you have to use the below code to set an icon on the Toolbar:
Code:
toolbar.setLogo(R.drawable.ic_launcher);
Thanks for your answer, it helped me.
Now i use:
PHP:
getSupportActionBar().setIcon(R.drawable.ic_launcher);
Now i want the left arrow on the left side of the icon, and using:
PHP:
getSupportActionBar().setDisplayShowHomeEnabled(true);
But it won't work. Can you help me with that?
Thanks!
meijeringw said:
Thanks for your answer, it helped me.
Now i use:
PHP:
getSupportActionBar().setIcon(R.drawable.ic_launcher);
Now i want the left arrow on the left side of the icon, and using:
PHP:
getSupportActionBar().setDisplayShowHomeEnabled(true);
But it won't work. Can you help me with that?
Thanks!
Click to expand...
Click to collapse
Add this to your code:
Code:
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
Does anyone know a way to register a click/tap from a watchface app? So you can for example start another app when a certain part of the watchface is clicked. According to the developer documentation it's not supported. But some watchface apps (like WatchMaker Premium) can do it, I wonder how? I've tried to add some clicklisteners etc but none of it works...
I am intrigued (and frustrated) by this very old post:
kelsoanim said:
Hey guys, I'm trying to find a way to get a book cover with link of your currently reading B&N book onto the launcher desktop. I've used Desktop Visualizer for this with Aldiko/Moon Reader/etc, which works great, but unfortunately it doesn't seem be able to access the stock reader app through it. Can anyone else think of a way to do this, maybe with the help of another app I'm not familiar with?
Click to expand...
Click to collapse
This is something I have been thinking about for a long time and have rejected various schemes, including those involving Desktop Visualizer. I use the app to generate my home screen layout but am no expert in all its potentials. There is precious little about it online, and precious little info in this one, isolated post from 2012.
To me, this implies that there has to be some way to trigger a widget refresh when a new book is selected in whatever reader. I can't see how that is done. Oh, I could do the trigger business easily enough with Tasker, but the refresh? There is a manual refresh icon in the app, but that is not reasonable. Who would do that every time a new book was started?
So there must have been some other trick. Can anyone who is an expert on Desktop Visualizer shed some light on this?
nmyshkin said:
So there must have been some other trick. Can anyone who is an expert on Desktop Visualizer shed some light on this?
Click to expand...
Click to collapse
I have an answer now, at least for me. Although the OP never mentioned Tasker, that appears to be one way out of this puzzle.
Tasker can use Desktop Visualizer as a plugin. I knew that before but I never paid any attention to it because it didn't seem to do anything I cared about. It can automate adding and removing "badges" from specific widgets. A "badge" is a little text bubble that might say "New" or perhaps "Now reading".
I began to wonder whether adding or removing badges would cause the entire widget icon image to refresh and....ta-da! It's silent and clean and the badges can be "blank" (that's how a badge is removed).
Now the fun begins. The rest is programming.