Android - How to fit each TableRow to the screen height











up vote
1
down vote

favorite












I'm looking to create a table with 3 cells (TableRow) each cell should have the dimensions of the size of the full screen (width and height).



Should I use something other than a TableLayout to get the same effect?



Thanks a lot.



Here is an example of the expected result










share|improve this question


























    up vote
    1
    down vote

    favorite












    I'm looking to create a table with 3 cells (TableRow) each cell should have the dimensions of the size of the full screen (width and height).



    Should I use something other than a TableLayout to get the same effect?



    Thanks a lot.



    Here is an example of the expected result










    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I'm looking to create a table with 3 cells (TableRow) each cell should have the dimensions of the size of the full screen (width and height).



      Should I use something other than a TableLayout to get the same effect?



      Thanks a lot.



      Here is an example of the expected result










      share|improve this question













      I'm looking to create a table with 3 cells (TableRow) each cell should have the dimensions of the size of the full screen (width and height).



      Should I use something other than a TableLayout to get the same effect?



      Thanks a lot.



      Here is an example of the expected result







      android






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 18 at 3:07









      gal.m

      83




      83
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          The standard way of doing this will be by using a RecyclerView along with a Vertical Layout Manager, each and every one of your element will have width and height as match parent.






          share|improve this answer





















          • Thank you very much! it is working great! here is an example of how to use RecyclerView with a Vertical Layout Manager. stackoverflow.com/questions/40584424/…
            – gal.m
            Nov 18 at 4:57










          • glad I could help @gal.m
            – war_Hero
            Nov 19 at 4:43













          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53357538%2fandroid-how-to-fit-each-tablerow-to-the-screen-height%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote



          accepted










          The standard way of doing this will be by using a RecyclerView along with a Vertical Layout Manager, each and every one of your element will have width and height as match parent.






          share|improve this answer





















          • Thank you very much! it is working great! here is an example of how to use RecyclerView with a Vertical Layout Manager. stackoverflow.com/questions/40584424/…
            – gal.m
            Nov 18 at 4:57










          • glad I could help @gal.m
            – war_Hero
            Nov 19 at 4:43

















          up vote
          0
          down vote



          accepted










          The standard way of doing this will be by using a RecyclerView along with a Vertical Layout Manager, each and every one of your element will have width and height as match parent.






          share|improve this answer





















          • Thank you very much! it is working great! here is an example of how to use RecyclerView with a Vertical Layout Manager. stackoverflow.com/questions/40584424/…
            – gal.m
            Nov 18 at 4:57










          • glad I could help @gal.m
            – war_Hero
            Nov 19 at 4:43















          up vote
          0
          down vote



          accepted







          up vote
          0
          down vote



          accepted






          The standard way of doing this will be by using a RecyclerView along with a Vertical Layout Manager, each and every one of your element will have width and height as match parent.






          share|improve this answer












          The standard way of doing this will be by using a RecyclerView along with a Vertical Layout Manager, each and every one of your element will have width and height as match parent.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 18 at 3:55









          war_Hero

          5,15822944




          5,15822944












          • Thank you very much! it is working great! here is an example of how to use RecyclerView with a Vertical Layout Manager. stackoverflow.com/questions/40584424/…
            – gal.m
            Nov 18 at 4:57










          • glad I could help @gal.m
            – war_Hero
            Nov 19 at 4:43




















          • Thank you very much! it is working great! here is an example of how to use RecyclerView with a Vertical Layout Manager. stackoverflow.com/questions/40584424/…
            – gal.m
            Nov 18 at 4:57










          • glad I could help @gal.m
            – war_Hero
            Nov 19 at 4:43


















          Thank you very much! it is working great! here is an example of how to use RecyclerView with a Vertical Layout Manager. stackoverflow.com/questions/40584424/…
          – gal.m
          Nov 18 at 4:57




          Thank you very much! it is working great! here is an example of how to use RecyclerView with a Vertical Layout Manager. stackoverflow.com/questions/40584424/…
          – gal.m
          Nov 18 at 4:57












          glad I could help @gal.m
          – war_Hero
          Nov 19 at 4:43






          glad I could help @gal.m
          – war_Hero
          Nov 19 at 4:43




















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53357538%2fandroid-how-to-fit-each-tablerow-to-the-screen-height%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Paul Cézanne

          UIScrollView CustomStickyHeader Resize height generates problems when scroll is too fast

          Angular material date-picker (MatDatepicker) auto completes the date on focus out