是否有可能在EditText两行之间计算宽度?
如果是这样,我如何能够这样做? 我需要计算EditText在规定的高度上可以走的线路数目! 我可以拿到这份案文,而且我也需要走这条路,但我知道如何找到。
Can anyone help me regarding this !!
Thanks,
Siva Kumar
是否有可能在EditText两行之间计算宽度?
如果是这样,我如何能够这样做? 我需要计算EditText在规定的高度上可以走的线路数目! 我可以拿到这份案文,而且我也需要走这条路,但我知道如何找到。
Can anyone help me regarding this !!
Thanks,
Siva Kumar
你们是否试图这样做?
public int getLineBounds (int line, Rect bounds) Since: API Level 1
Return the baseline for the specified line (0...getLineCount() - 1) If bounds is not null, return the top, left, right, bottom extents of the specified line in it. If the internal Layout has not been built, return 0 and set bounds to (0, 0, 0, 0)
参数
line which line to examine (0..getLineCount() - 1)
bounds Optional. If not null, it returns the extent of the line
回返
the Y-coordinate of the baseline
与A/62/的联系
I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...
I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...
I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...
I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...
To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?
When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...
I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...
I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...