listview

Android 7 & 8 Only - ClassCastException: LayoutParams cannot be cast to AbsListView$LayoutParams

戏子无情 提交于 2021-01-27 22:46:48
问题 I have a very odd problem that I'm looking into. I didn't write the original code, but I am investigate why its crashing now, all of a sudden. After looking at it, I don't see any reason for the crash. Also, it works perfectly in lower OS levels (e.g., Android 6); however, its consistently crashing when run in Android 7 and 8. It was also very difficult to reproduce at first, because the crash only manifests after the 6th indices... Was originally thinking that it might be some corrupted data

Remove Extra “Space” using List View and GridView

自闭症网瘾萝莉.ら 提交于 2021-01-27 19:07:33
问题 So I am using a Grid View inside of a List View and when I run my application I get this weird spacing stuff before the row of my items, between the items, and at the end (can't see in picture), which I want to remove. Here is my XAML. <ListView x:Name="schemaTableListView" Width="600" Height="50" Margin="0,550,0,0" ItemsSource="{Binding phase}"> <ListView.View> <GridView > <GridView.ColumnHeaderContainerStyle> <Style TargetType="{x:Type GridViewColumnHeader}"> <Setter Property="IsEnabled"

ListView findViewById returning null

允我心安 提交于 2021-01-27 14:20:55
问题 I'm not using a ListActivity because I want to extend FragmentActivity. Instead I'm trying to use: ListView lv = (ListView) findViewById(R.id.mainListView); Unfortunately lv is null. In my xml I have: <ListView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/mainListView" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" > </ListView> I've also tried using different android id's for the list view such as the one you

How to call getIntent() in adapter class

て烟熏妆下的殇ゞ 提交于 2021-01-27 14:08:47
问题 In getView() method I want to call getIntent(). How can I achieve this without starting a new activity. The getView method like this public View getView(final int position, View convertView, ViewGroup parent) { PaymentData rowItem = getItem(position); LayoutInflater mInflater = (LayoutInflater) context .getSystemService(Context.LAYOUT_INFLATER_SERVICE); if (convertView == null) { convertView = mInflater.inflate( com.android.paypal.homeactivity.R.layout.list_item, null); holder = new

JSON Exception - No value for wanted parameter

[亡魂溺海] 提交于 2021-01-27 11:50:36
问题 I am developing an app on the android platform that gets youtube video search results as a JSON format and puts the title, channel name, and thumbnail url into a listview. I should also add that I am using the jsoup library for android. Pretty much I am connecting to a URL that contains a JSON response and am trying to use values from that response and apply them to a listview. Here is the method. public void initSearch(String searchQuery) { String url = "https://www.googleapis.com/youtube/v3

JSON Exception - No value for wanted parameter

 ̄綄美尐妖づ 提交于 2021-01-27 11:50:21
问题 I am developing an app on the android platform that gets youtube video search results as a JSON format and puts the title, channel name, and thumbnail url into a listview. I should also add that I am using the jsoup library for android. Pretty much I am connecting to a URL that contains a JSON response and am trying to use values from that response and apply them to a listview. Here is the method. public void initSearch(String searchQuery) { String url = "https://www.googleapis.com/youtube/v3

Images In ListView Don't Match BackColor Property

混江龙づ霸主 提交于 2021-01-27 10:42:14
问题 Overview I am currently working on a theme system for my application allowing Light and Dark themes for users to choose from (similar to visual studio). The entire process is pretty straight forward and this is how I am changing the BackColor property of the ListView control currently (though I have tried a couple inline solutions that failed such as just setting the BackColor of the ListView and ListViewItem ). Breakdown I have an ImageList with 6 images; all of which have transparent

Automation support for Visual Basic 6 ListView

我是研究僧i 提交于 2021-01-27 08:20:18
问题 I need to get value/text of control via automation interface (coding with C++/C#). I tried with UI Automation API and this is some result captured by the Inspect: UI Automation recognize these control as pane and I can't get list view text item or get/set slider value as normal. Tried with other tool like MSAA, Automation Spy give the same result. After researching, I found that control with class name like ListView20WndClass , Slider20WndClass , ... belong to Visual Basic 6 control. So, Is

WPF accessing scrollviewer of a listview codebehind

♀尐吖头ヾ 提交于 2021-01-27 05:27:33
问题 I need to access the scrollviewer of a listview from the codebehind. here is the definition of my listview <ListView Grid.Row="1" ItemsSource="{Binding Path=SpecList, UpdateSourceTrigger=PropertyChanged}" Name="mylistview" ItemTemplate="{StaticResource SpecElementTemplate}" Background="{StaticResource EnvLayout}" ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Disabled" ItemContainerStyle="{StaticResource MyStyle}" BorderBrush="Blue"

WPF accessing scrollviewer of a listview codebehind

这一生的挚爱 提交于 2021-01-27 05:27:19
问题 I need to access the scrollviewer of a listview from the codebehind. here is the definition of my listview <ListView Grid.Row="1" ItemsSource="{Binding Path=SpecList, UpdateSourceTrigger=PropertyChanged}" Name="mylistview" ItemTemplate="{StaticResource SpecElementTemplate}" Background="{StaticResource EnvLayout}" ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Disabled" ItemContainerStyle="{StaticResource MyStyle}" BorderBrush="Blue"